<?=$html->docType();?>
<?php 
	/* @var $html HtmlHelper */
	/* @var $javascript JavascriptHelper */
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $title_for_layout?></title>
	<!--
	<link rel="icon" type="image/x-icon" href="<?=APP_ROOT?>/favicon.ico" />
	<link rel="shortcut icon" type="image/x-icon" href="<?=APP_ROOT?>/favicon.ico" />
	-->
	<link rel="bookmark" type="image/x-icon" href="<?=APP_ROOT?>/favicon.ico" />
	<meta name="description" content='<?=(isset($description))?addcslashes($description, "'" ):$title_for_layout?>' />
	<meta name="keywords" content="<?=(isset($keywords))?addcslashes($keywords, "'" ):$title_for_layout?>" />
	<meta name="author" content="bulgarian SP" />
	<meta name="rating" content="General" />
	<meta name="copyright" content="All right reserved bulgariansp.com  2011" />
	<meta name="classification" content="General" />
	<meta name="robots" content="all" />

	<?//=$html->css('style');?>
	<?=$html->css('public');?>
	<?=$html->css('CMS_styles');?>
	<?//=$html->css('custom-theme/jquery-ui-1.8.1.custom.css');?>
	<?//=$html->css('../facebox/facebox.css');?>
	<?//=$html->css('../dw_scroll/css/scrollbar_demo.css');?>
	<?//=$html->css('../thickbox/thickbox.css');?>
	<?//=$html->css('../jcarousel/skins/custom/skin.css');?>
	<?=$html->css('WTO/reset.css');?>
	<?=$html->css('WTO/grid.css');?>
	<?=$html->css('WTO/style.css');?>
	<?=$html->css('WTO/jquery-ui-1.8.5.custom.css');?>
	
	<?//=$javascript->link('jquery-1.4.2.min');?>
	<?//=$javascript->link('jquery-ui-1.8.1.custom.min.js');?>
	<?//=$javascript->link('jqueryCookie.js');?>
	<?//=$javascript->link('jquery.cross-slide.js');?>
	<?//=$javascript->link('jquery.jcarousel.min.js');?>
	<?//=$javascript->link('../facebox/facebox.js');?>
	<?//=$javascript->link('../thickbox/thickbox.js');?>
	<?//=$javascript->link('hoverIntent');?>
	
	<?//=$javascript->link('../dw_scroll/js/dw_event.js');?>
	<?//=$javascript->link('../dw_scroll/js/dw_scroll.js');?>
	<?//=$javascript->link('../dw_scroll/js/dw_scrollbar.js');?>
	<?//=$javascript->link('../dw_scroll/js/scroll_controls.js');?>
	
	<?=$javascript->link('WTO/jquery-1.4.2.min.js');?>
	<?=$javascript->link('WTO/jquery.cycle.all.js');?>
	<?=$javascript->link('WTO/jquery-ui-1.8.5.custom.min.js');?>
	<!--[if lt IE 9]>
		<?=$javascript->link('WTO/html5.js');?>
	<![endif]-->

	<?=$scripts_for_layout;?>
</head>
<body>
	<?=$this->element('header'); ?>
	<section id="content">
		<div class="top">
			<div class="container">
				<div class="clearfix">
					<?php
						if($slug == 'home'){ 
					?>
					<section id="gallery">
						<div class="pics">
							<?php
								foreach ($assets as $asset){
									echo '<img src="/'.$asset['Asset']['url'].'" alt="" width="495" height="329">';
								}
							?>
						</div>
						<a href="#" id="prev"></a>
						<a href="#" id="next"></a>
					</section>
					<section id="intro">
						<div class="inner">
							<?=$content_for_layout;?> 
							</div>
					</section>
					<?php 
						}else{
					?>
					<section id="global_content">
						<div class="inner">
							<?=$content_for_layout;?> 
							</div>
					</section>
					<?php 
						}
					?>
				</div>
			</div>
		</div>
		<!--<div class="middle">
			<div class="container">
				<div class="wrapper">
					<div class="grid3 first">
						<ul class="categories">
							
						</ul>
					</div>
					<div class="grid9">
						<p>Grow service revenue with world-class lifecycle service and support.</p>
						<p>Fusce euismod consequat ante. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque sed dolor. Aliquam congue fermentum nisl. Mauris accumsan nulla vel diam. Sed in lacus ut enim adipiscing aliquet. Nulla venenatis. In pede m aliquet sit amet, euismod in, auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortisissim, pulvinar ac, lorem. Vestibulum sed ante. Donec sagittis euismod purus.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. </p>
						<p><a href="#" class="more">Read More</a></p>
						<section class="/img/WTO">
							<figure><a href="#"><img src="/img/WTO/1page-img1.jpg" alt=""></a></figure>
							<figure><a href="#"><img src="/img/WTO/1page-img2.jpg" alt=""></a></figure>
							<figure><a href="#"><img src="/img/WTO/1page-img3.jpg" alt=""></a></figure>
						</section>
					</div>
				</div>
			</div>
		</div>
		--><div class="bottom">
			<div class="container">
				<div class="clearfix">
					<div class="grid3 first">
					
				
						<h3><span style="COLOR: #ff6600" > <?=$html->__('Postal Address')?></span></h3>
						<div class="wrapper">
							<dl class="address">
								<dt><?=$html->__('company name')?><br />
								<?=$html->__('Moscow')?>,<br />
								<?=$html->__('address')?></dt>
								
								<dd><span><?=$html->__('tel.:')?></span><?=$html->__('tel_no')?></dd>
								<dd><span><?=$html->__('E-mail:')?></span><a href="#" style="COLOR: #ff6600; " > morburs@gmail.com</a></dd>
							</dl> 
						</div>
					</div>
					<div class="grid6">
						<h3><span style="COLOR: #ff6600" ><?=$html->__('Contact Form')?></span></h3>
						<?php if($msg = $session->flash()){
					echo '<div class="error">' . $msg . '</div>'; 
				}?>
				<div id="error2" class="error"></div>
						<form action="/email/send" id="contacts-form" method="post" enctype="multipart/form-data" >
							<fieldset>
								<div class="grid3 first">
									<label><?=$html->__('Name*')?>:<br />
										<input type="text" value="" name="name" />
									</label>
									<label><?=$html->__('E-mail*')?>:<br />
										<input type="email" value="" name="email" />
									</label>
									<label><?=$html->__('Telephone')?>:<br />
										<input type="text" value="" name="telephone" />
									</label>
									<label><?=$html->__('Firm name')?>:<br />
										<input type="text" value="" name="firm_name" />
									</label>
									<label><?=$html->__('INN:KKP')?>:<br />
										<input type="text" value="" name="inn_kkp" />
									</label>
									<label><?=$html->__('File Send')?>:<br />
										<input type="file" value="" name="file" />
									</label>
									

								</div>
								<div class="grid3"><?=$html->__('Message')?>:<br />
									<textarea name="message" ></textarea>
									<label><?=$html->__('Repeat the code*')?>:<br />
										<input type="text" value="" name="captcha" />
									</label>
									<img src="<?php echo $html->url('/contents/captcha'); ?>" />
									<br><br>
									<div class="alignright">
										<a href="#" class="alt" onClick="document.getElementById('contacts-form').reset()" style="COLOR: #ff6600; "><?=$html->__('Clear')?></a> &nbsp; &nbsp; &nbsp;
										<a href="#" id="submit" class="alt" onClick="document.getElementById('contacts-form').submit()" style="COLOR: #ff6600; "><?=$html->__('Submit')?></a>
									</div>
								</div>
							
			</div>
			</div>
		</div>
		</div>
	</section>
	<?=$this->element('footer'); ?>
	<script type="text/javascript">
		$(document).ready(function() {
			$('.pics').cycle({
				fx: 'toss',
				next:	 '#next', 
				prev:	 '#prev' 
			});

			$('#submit').bind('click', function(){
				$('#error2').html('<?php echo $html->__('Please wait ... ');?>');
			});
			
		});
	</script>
	
	<!-- google analytics -->
	<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-24146466-1']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	
	</script>
	<!-- /google analytics -->
	

	<!-- Yandex.Metrika counter -->
		<div style="display:none;"><script type="text/javascript">
		(function(w, c) {
			(w[c] = w[c] || []).push(function() {
				try {
					w.yaCounter7657450 = new Ya.Metrika({id:7657450, enableAll: true});
				}
				catch(e) { }
			});
		})(window, 'yandex_metrika_callbacks');
		</script></div>
		<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
		<noscript><div><img src="//mc.yandex.ru/watch/7657450" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
	<!-- /Yandex.Metrika counter -->
</body>

</html>